package com.read.mapper;

import com.read.dto.result.NovelContentResultDto;
import com.read.entity.NovelContent;

import java.util.List;

public interface NovelContentMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(NovelContent record);

    int insertSelective(NovelContent record);

    NovelContent selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(NovelContent record);

    int updateByPrimaryKeyWithBLOBs(NovelContent record);

    int updateByPrimaryKey(NovelContent record);

    /**
     * @description 根据章节id查询小说正文
     * @author sh-sunb6
     * @date 2019-02-20 17:37
     * @params sectionId
     */
    public NovelContentResultDto selectNovelContentBySectionId(Integer sectionId);
}